package stark.app.function.chess;

import com.stark.chess.DefChessPlayActivity;

import stark.app.R;
import stark.app.base.BaseWithFragmentActivity;
import stark.app.databinding.ActivityChessDemoBinding;
import stark.common.basic.base.BaseNoModelActivity;

/**
 * Author：daizhongbin on 2021/10/6
 * Email：1027154338@qq.com
 * Desc:
 */
public class ChessDemoActivity extends BaseNoModelActivity<ActivityChessDemoBinding> {

    @Override
    protected int onCreate() {
        return R.layout.activity_chess_demo;
    }

    @Override
    protected void initView() {
        mDataBinding.btnGoChess.setOnClickListener(v -> {
            startActivity(DefChessPlayActivity.class);
        });
        mDataBinding.btnEndGame.setOnClickListener(v -> {
            BaseWithFragmentActivity.start(this, "象棋残局", ChessEndGameFragment.class);
        });
    }

    @Override
    protected void initData() {
    }
}
